home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / mush-7.1.1 / makefile.xenix < prev    next >
Encoding:
Makefile  |  1990-05-02  |  2.2 KB  |  74 lines

  1. #
  2. # makefile for Xenix machines.  See "MODEL" below for your xenix type.
  3. # some .c files may require the -LARGE compiler flag.  Examples below.
  4. # This makefile assumes an 80386 machine.  If you have an 80286, see
  5. # notes below.  This makefile was built for SCO/microsoft xenix --if you
  6. # are running some other kind of xenix, you might need to change the
  7. # CFLAGS and LDFLAGS options.
  8. #
  9. HDRS= mush.h config.h-dist strings.h bindings.h options.h version.h glob.h
  10. SRCS1= main.c init.c misc.c execute.c
  11. SRCS2= signals.c msgs.c pick.c viewopts.c
  12. SRCS3= sort.c expr.c folders.c dates.c
  13. SRCS4= loop.c bind.c options.c
  14. SRCS5= commands.c setopts.c hdrs.c
  15. SRCS6= mail.c print.c
  16. SRCS7= curses.c curs_io.c
  17. SRCS8= file.c strings.c malloc.c
  18. SRCS9= lock.c macros.c addrs.c glob.c
  19. OBJS= main.o init.o misc.o mail.o hdrs.o execute.o commands.o print.o file.o \
  20.       signals.o setopts.o msgs.o pick.o sort.o expr.o strings.o \
  21.       folders.o dates.o loop.o viewopts.o bind.o curses.o curs_io.o \
  22.       lock.o macros.o options.o addrs.o malloc.o glob.o
  23. HELP_FILES= README README-7.0 README-7.1 mush.1 cmd_help \
  24.     Mushrc Mailrc Gnurc sample.mushrc advanced.mushrc digestify
  25.  
  26. # Memory model.  Use -M3e for 80386 machines.
  27. # Use -M2le -Mt32 -LARGE for 80286 machines.
  28. MODEL= -M3e
  29.  
  30. #
  31. # 80286 xenix may use this LDFLAGS define:
  32. #LDFLAGS= -X -lx -M2le -Mt32 -F 8000 -SEG 256 -LARGE
  33. LDFLAGS= -X -lx -M3
  34.  
  35. CFLAGS= $(MODEL) -O -DSYSV -DCURSES -DREGCMP -DUSG 
  36. LIBES= -lcurses -ltermlib
  37. OTHERLIBS=
  38. # Use some variant of this one if you #define MMDF in config.h
  39. #OTHERLIBS=/usr/src/mmdf/lib/libmmdf.a
  40.  
  41. mush: $(OBJS)
  42.     @echo loading...
  43.     @cc $(LDFLAGS) $(OBJS) $(LIBES) $(OTHERLIBS) -o mush
  44.  
  45. $(OBJS): config.h mush.h
  46. loop.o: version.h
  47.  
  48. # For 80286 machines, use these two lines...
  49. # misc.o:    misc.c
  50. #     cc $(CFLAGS) -LARGE -c misc.c
  51.  
  52. bind.o:    bind.c
  53.     cc $(CFLAGS) -LARGE -c bind.c
  54.  
  55. clean:
  56.     rm -f *.o core mush
  57.  
  58. BINDIR= /usr/local/bin
  59. LIBDIR= /usr/local/lib
  60. MRCDIR= /usr/lib
  61. MANDIR= /usr/local/man/man1
  62. MANEXT= 1
  63.  
  64. install: mush
  65.     cp mush $(BINDIR)
  66.     strip $(BINDIR)/mush
  67.     chmod 0755 $(BINDIR)/mush
  68.     cp mush.1 $(MANDIR)/mush.$(MANEXT)
  69.     chmod 0644 $(MANDIR)/mush.$(MANEXT)
  70.     cp cmd_help $(LIBDIR)
  71.     chmod 0644 $(LIBDIR)/cmd_help
  72.     cp Mushrc $(MRCDIR)/Mushrc
  73.     chmod 0644 $(MRCDIR)/Mushrc
  74.